import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'


//通用信息录入审核查询
export const apiUrlConfigApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationApprove/search`,
}



// 通用信息录入
export function generalInformationEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationEntry/save`,
    method: 'post',
    data:data
  })
}



// 通用信息录入审核详情
export function  generalInformationApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationApprove/detail`,
    method: 'get',
    params:{coreId:data.coreId,msgtype:data.msgtype,bizType:data.bizType,bizCtgy:data.bizCtgy}
  })
}


// 通用信息录入审核通过
export function  generalInformationApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationApprove/approve`,
    method: 'post',
    data:data
  })
}

// 通用信息录入审核通过
export function  generalInformationApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationApprove/reject`,
    method: 'post',
    data:data
  })
}

// 通用信息录入审核下载
export function  generalInformationApproveDownload(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationApprove/download`,
    method: 'get',
    params: {id:data.id}
  })
}


//通用信息录入查询
export const apiUrlConfigQueryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/search`,
}

// 通用信息录入查询详情
export function  generalInforQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/detail`,
    method: 'get',
    params:{id:data.id,pkgNo:data.pkgNo,bizType:data.bizType,bizCtgy:data.bizCtgy}
  })
}


//通用信息录入查询06813
export const apiUrlConfigQuery06813 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/search06813`,
}
//通用信息录入查询06814
export const apiUrlConfigQuery06814 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/search06814`,
}
//通用信息录入查询06815
export const apiUrlConfigQuery06815 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/search06815`,
}
//通用信息录入查询068141
export const apiUrlConfigQuery068141 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/search068141`,
}
//通用信息录入查询068151
export const apiUrlConfigQuery068151 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/search068151`,
}
//通用信息录入查询06807
export const apiUrlConfigQuery06807 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/search06807`,
}

// 通用信息录入查询详情14
export function  generalInformationQueryDetail14(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/detailtable14`,
    method: 'get',
    params:{id:data.id}
  })
}

// 通用信息录入查询详情15
export function  generalInformationQueryDetail15(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/detailtable15`,
    method: 'get',
    params:{id:data.id}
  })
}

// 通用信息录入查询详情141
export function  generalInformationQueryDetail141(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/detailtable141`,
    method: 'get',
    params:{id1:data.id1}
  })
}

// 通用信息录入查询详情151
export function  generalInformationQueryDetail151(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/detailtable151`,
    method: 'get',
    params:{id1:data.id1}
  })
}



// 通用信息录入查询下载原报文附件
export function  generalInformationQuerydownload(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/download`,
    method: 'get',
    params: { id:data.id}
  })
}


// 通用信息录入查询下载应答录入附件
export function  generalInformationQuerydownload1(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/general/GeneralInformationQuery/download1`,
    method: 'get',
    params: { id:data.id }
  })
}
